package com.datas.beans;

import com.datas.utils.JigeStringTools;
import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
import java.util.Map;

@Getter
@Setter
public class SearchCompanyParam {
    private String dept_name;
    private String dept_code;

    public Map<String, Object> param() {
        Map<String, Object> param = new HashMap<>();
        param.put("dept_name", getDept_nameSearch());
        param.put("dept_code", getDept_codeSearch());
        return param;
    }

    public String getDept_nameSearch() {
        return JigeStringTools.makeSearchStr(dept_name);
    }

    public String getDept_codeSearch() {
        return JigeStringTools.makeSearchStr(dept_code);
    }
}
